import request from '@/utils/request'
import config from '@/utils/config'
// config.BaseUrl 114
// config.real1Url 118

// sidebar - 设置接口

// 订单发货接口
export function sendExpress(params) {
  return request({
    url: config.BaseUrl + '/express/sendExpress',
    method: 'post',
    data: params
  })
}

// 订单取消发货接口
export function cancelExpress(params) {
  return request({
    url: config.BaseUrl + '/express/cancelExpress',
    method: 'post',
    data: params
  })
}

// 物流信息
export function ExpressInfo(params) {
  console.log(params)
  return request({
    url: config.BaseUrl + '/express/logisticsList',
    method: 'get',
    params
  })
}

// 分页获取获取支持的快递公司信息接口
export function getExpressCompany(params) {
  console.log(params)
  return request({
    url: config.BaseUrl + '/expressCompany/findList',
    method: 'get',
    params
  })
}

// // 寄件地址运力查询接口
export function verificationAddress(params) {
  return request({
    url: config.BaseUrl + '/expressCompany/verificationAddress',
    method: 'post',
    data: params
  })
}
// export function verificationAddress(params) {
//   console.log(params)
//   return request({
//     url: config.BaseUrl + '/expressCompany/verificationAddress',
//     method: 'get',
//     params
//   })
// }
